package com.chinamobile.iot.handler.model;

/**
 * the subscription client in the subscription tree 3
 * Created by szl on 2017/7/26.
 */
public class Tree3Client {

    public Tree3Client() {
    }

    public Tree3Client(String c, String b) {
        this.c = c;
        this.b = b;
    }

    /**
     * the clientId
     */
    private String c;
    /**
     * the brokerName
     */
    private String b;

    public String getC() {
        return c;
    }

    public void setC(String c) {
        this.c = c;
    }

    public String getB() {
        return b;
    }

    public void setB(String b) {
        this.b = b;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Tree3Client client = (Tree3Client) o;

        if (!c.equals(client.c)) return false;
        return b != null ? b.equals(client.b) : client.b == null;
    }

    @Override
    public int hashCode() {
        int result = c.hashCode();
        result = 31 * result + (b != null ? b.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Tree3Client{" +
                "c='" + c + '\'' +
                ", b='" + b + '\'' +
                '}';
    }
}
